package com.yc.favorite.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author ly
 * @since 2023-10-24
 */
@Data
public class Tag implements Serializable {

    private static final long serialVersionUID = 1L;

    // 该属性不映射数据库的字段
    @TableField(exist = false)
    private List<Favorite> favorites;

      @TableId(value = "tid", type = IdType.AUTO)
      private Integer tid;

    private String tname;

    private Integer tcount;

    
    public Integer getTid() {
        return tid;
    }

      public void setTid(Integer tid) {
          this.tid = tid;
      }
    
    public String getTname() {
        return tname;
    }

      public void setTname(String tname) {
          this.tname = tname;
      }
    
    public Integer getTcount() {
        return tcount;
    }

      public void setTcount(Integer tcount) {
          this.tcount = tcount;
      }

    @Override
    public String toString() {
        return "Tag{" +
              "tid=" + tid +
                  ", tname=" + tname +
                  ", tcount=" + tcount +
              "}";
    }
}
